/*
 *  $Id: RealityWipe.cs 1051 2010-05-18 22:10:41Z thenn.erannor $
 *	This file is a part of Ragima CCG.
 *	(C) 2008 Ragima development group.
 *
 *	Licensed under the terms of the GNU GPL License version 2.
 *
 */

namespace Ragima.Cards001.Neutral.Spells {
    public class RealityWipe: SpellCard<Affect> {
        public RealityWipe(): base("001_n_s_reality_wipe") {
            Level = CompleteLevel.ReadyForTest;
            Element = ElementType.Neutral;
            Value = 100;
            Target = EnchantmentTarget.OnlyDispellable;
            AddManaCost(ElementType.Neutral, 1);
            AddCondition(HandCardsCondition.OwnRelease(1));
        }

        protected override void DoAction(TargetArgs<Affect> args) {
            args.Player.IncrementMana(args.Target.Element, 1);
            args.Target.Dispell();
        }
    }
}
